package org.example.utils;
import java.sql.Timestamp;
import java.util.concurrent.TimeUnit;

// 工具方法：截断到秒级
public class TimestampUtils {
    public static Timestamp truncateToSeconds(Timestamp timestamp) {
        return new Timestamp(timestamp.getTime() / 1000 * 1000);
    }
}